#ifndef INTFIELD_H
#define INTFIELD_H

#include "int_global.h"
#include "../databasefield.h"

class INTSHARED_EXPORT IntField : public DatabaseField
{
    Q_OBJECT
    Q_INTERFACES(DatabaseField)
public:
    IntField();

    QWidget *createDelegate(const QVariantMap &properties = QVariantMap());

    void setEditable(QWidget *delegate, bool editable);
    QVariant data(QWidget *delegate) const;
    void setData(QWidget *delegate, const QVariant &data);

public slots:
    void clear(QWidget *delegate);
};

#endif // INTFIELD_H
